<?php
/**
 * User: Aven(老甘)
 * Date: 2018-03-21
 * Time: 11:26
 */

namespace app\push\controller;

use think\Controller;

class Push extends Controller
{
    public function index(){
        $result = \app\push\service\Push::send('后台推送消息 3',3);
        if (isset($result['code']) && $result['code'] == 0){
            return '推送成功';
        }else{
            if (isset($result['data']) && isset($result['data']['msg'])){
                return $result['data']['msg'];
            }else{
                return '推送失败';
            }
        }
    }

}